package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.text.ParseException;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface UserService {
    //根据员工名字查询数据库
public User FindUserByName(String Name);
    //根据员工ID查询角色库
public Set<Role> FindRoleById(Integer id);
    //根据角色ID查询权限库
public Set<Permission> FindPremissionById(Integer id);
    //修改用户密码
    public boolean updatepassword(String oldcode,String newcode ,String username);

    boolean Ackpassword(Map user);
    //下面是关于用户表的操作
    void add(User user);

    PageResult pageQuery(QueryPageBean queryPageBean) throws Exception;

    User findById(Integer id);

    List<Role> findAll();

    void edit(User user, Integer[] roles);

    void DeleteById(Integer id);

}
